<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>自适应导航栏</title>
    <!-- 引入CSS -->
    <link rel="stylesheet" href="./CSS/style.css" />
  </head>
  <body>
    <header class="header">
      <nav class="navbar">
        <a href="#" class="nav-logo">DemoNav.</a>
        <!-- #:跳转链接 -->
        <ul class="nav-menu">
          <li class="nav-item" ><a href="#" id="1" class="nav-link">背景1</a></li>
          <li class="nav-item" ><a href="#" id="2" class="nav-link">背景2</a></li>
          <li class="nav-item" ><a href="#" id="3" class="nav-link">背景3</a></li>
        </ul>
        
        <div class="hamburger">
          <!-- 更多按钮 -->
          <span class="bar"></span>
          <span class="bar"></span>
          <span class="bar"></span>
        </div>
      </nav>
    </header>
  </body>
  <!-- 引入js -->
  <script src="./JS/index.js"></script>
</html>
